﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Web;

namespace CardTest
{
    class DeckOfCards
    {
        
        private List<Card> cards = new List<Card>();

        public List<Card> Cards
        {
            get { return cards; }
            
        }

        public DeckOfCards()
        {
            for (int i = 0; i < 52; i++)
            {
                Cards.Insert(new Random().Next(0,cards.Count), new Card(i / 4, i % 4));
            }
        }

        public String toString()
        {
            String result = "";
            foreach (Card obj in Cards)
            {
                result+=obj.Prefix + "-" + obj.Suffix + "\t";
            }
            return result;
        }
    }
}
